<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>

  <style> 
    * {
      margin: 0;
      padding: 0;
    }
    ul {
      list-style: none;
      width: 100%;
      overflow: hidden;
    }

    .item {
      width: 100%;
      height: 40px;
      line-height: 40px;
      background: #00f;
      position: relative;
    }

    .item .del {
      width: 60px;
      position: absolute;
      left: 100%;
      background: #f00;
    }
  </style>
</head>
<body>
  <ul>
    <li class="item">
      <span>sflkjasflkj</span>
      <span class="del">删除</span>
    </li>
  </ul>

  <script>
    let x
    document.querySelector('.item').addEventListener('touchstart', (e) => {
      x = e.changedTouches[0].pageX
    })

    document.querySelector('.item').addEventListener('touchmove', (e) => {
      let dx = e.changedTouches[0].pageX - x

      if (dx > 0)
        dx = 0
      else if (dx < -60)
        dx = -60

      document.querySelector('.item').style.left = dx + "px"
    })
  </script>
</body>
</html>